$c1:#0094ff;

@mixin bar($x,$y) {
    background-image: url(../images/icon_bar.png);
    background-repeat: no-repeat;
    background-size:220px 132px;
    background-position: $x $y; 
}
// 头部
header{
    height: 50px;
   .h-top{
    background-color: $c1; 
    padding: 5px 10px 10px 15px;
    height: 50px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0; 
    z-index: 10;
    }
    h1{
        float: left;
        padding-top: 5px;
        width: 200px;
    }
    .load{
        float: right;
        width: 34px;
        height: 34px;
    }
} 
// 搜索
.ser{
    height: 50px;
    display: flex;
    justify-content: space-between;
    padding: 10px 10px;
    position: relative;
    &::before{
        position: absolute;
        top: 11px;
        left: 15px;
        content: "";
        width: 25px;
        height: 25px;
       @include bar(-10px,-8px);  
    }
    input{
        flex: 1;
        color: #666;
        padding: 5px 15px 5px 30px;
        background-color: #f1f1f1;
        border-radius: 15px 15px;
    }
    button{
        height: 30 px;
        width: 50px;
        background-color: $c1;
        color: #fff;
        border-radius: 15px 15px;
        margin-left: 10px;
    }
}
// 小横线
.line{
    height: 5px;
    background-color: #efefef; 
}
// 导航 
nav{
    .nav-ul{
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 5px;
        li{
            width: 25%;
            // transition: all 2s; 
            a{
                background-origin: content-box;
                background-clip: content-box;
                padding: 15px 15px 0px 15px;
                font-size: 12px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                justify-content: space-between;
                span{
                    padding-top: 5px;
                }  
            }
        }
        .hide{
            display: none;
            // height: 0;
        }
    }
}
// 商品推荐
.con-title{
    background-color: #ff9d1f; 
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    span{
        color: #fff;
        font-weight: 600;  
    }
    .toggle{
        width: 18px;
        height: 18px;
        border: 1px solid #fff;
        border-radius: 50%;
        @include bar(-184px,4px);
        margin: 2px 2px;
    }
    .toggle-bar{
            @include bar(-173px,6px);
    }
}
   //折扣推荐
.tj-list{
    display: flex;
    padding: 15px 0px;
    border-bottom: 1px solid #eee;
    font-size: 14px;   
    img{ 
        flex: 1;
        width: 33.3333%; 
        height: 70%;    
    }
    .goods{
        flex: 2;
        padding: 0px 20px 10px 10px;
        position: relative;
        p{
            .jiage{
                color:red;
            }
        }
        .other{
            position: absolute;
            left: 10px;
            bottom:0px;
            width: 92%;
            font-size: 12px;
            color: #999;
           p{
               float: right;  
           }
        }
    }
}
// 更多优惠信息
.more{
    margin: 5px;
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background-color: #f7f7f7;
    border-radius: 5px 5px 5px 5px;
    color: #666;
}
// 底部
footer{
    background-color: #eee;
    height: 110px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    .fuwu{
        height: 40px;
        border-top: 1px solid #dedede;
        border-bottom: 1px solid #dedede;
        display: flex;
        margin-bottom: 10px;
        a{
            width: 30%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        a:last-child{
            width: 40%;
            span{
               width: 25px; 
               height: 20px;
               @include bar(-142px,-12px);
            }
        }
        a:nth-child(2){
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
        }
    }
    p{
        font-size: 12px; 
        a{
            color: red;
        }
        span{
            color: #666;
        }
    }
    p:last-child{
        color: #666;
        padding: 2px;
    }
}


// 补充弹出层
html{
    height: 100%;
}
body{
    height: 100%;
}
.layout{
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    background:rgba(0, 0, 0, .5);
    z-index: 1000;
    .text{
        width: 130px;
        height: 50px;
        font-size: 14px;
        background-color: #333;
        color: #fff;
        position: relative;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        text-align: center;
        border-radius: 5px;
    }
}
